package com.neu.eurekaconsumertea.service;

import com.neu.dto.TeaDto;
import com.neu.util.CommonResult;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

@Service
public class TeaService {
    @Resource
    private RestTemplate restTemplate;

    public CommonResult doReg(TeaDto dto){
        CommonResult rst=null;
        rst=restTemplate.postForObject("http://EUREKAPROVIDER02:8002/tea/reg",
                dto,CommonResult.class);
        return  rst;
    }
}


